﻿using Super_Management_Mayhem.Content.Spritesheet;
using Transformable_Engine_v2.Engine.Animation.FrameAnimation;

namespace Super_Management_Mayhem.Content.Animations
{
    public class Hearts : FrameAnimationDescription
    {
        public Hearts()
        {
            IsLooping = true;
            AddFrame(0, new FrameDescription(UISheet.GetSprite(UISheet.Heart.Heart0), 1));
            AddFrame(1, new FrameDescription(UISheet.GetSprite(UISheet.Heart.Heart1), 2));
            AddFrame(2, new FrameDescription(UISheet.GetSprite(UISheet.Heart.Heart2), 3));
            AddFrame(3, new FrameDescription(UISheet.GetSprite(UISheet.Heart.Heart3), 4));
            AddFrame(4, new FrameDescription(UISheet.GetSprite(UISheet.Heart.Heart4), 5));
            AddFrame(5, new FrameDescription(UISheet.GetSprite(UISheet.Heart.Heart5), 6));
            AddFrame(6, new FrameDescription(UISheet.GetSprite(UISheet.Heart.Heart6), 7));
            AddFrame(7, new FrameDescription(UISheet.GetSprite(UISheet.Heart.Heart7), 8));
            AddFrame(8, new FrameDescription(UISheet.GetSprite(UISheet.Heart.Heart8), 9));
            AddFrame(9, new FrameDescription(UISheet.GetSprite(UISheet.Heart.Heart9), 10));
            AddFrame(10, new FrameDescription(UISheet.GetSprite(UISheet.Heart.Heart10), 11));
            AddFrame(11, new FrameDescription(UISheet.GetSprite(UISheet.Heart.Heart11), 12));
            AddFrame(12, new FrameDescription(UISheet.GetSprite(UISheet.Heart.Heart12), 13));
            AddFrame(13, new FrameDescription(UISheet.GetSprite(UISheet.Heart.Heart13), 14));
            AddFrame(14, new FrameDescription(UISheet.GetSprite(UISheet.Heart.Heart14), 15));
            AddFrame(15, new FrameDescription(UISheet.GetSprite(UISheet.Heart.Heart15), 16));
            AddFrame(16, new FrameDescription(UISheet.GetSprite(UISheet.Heart.Heart16), 17));
            AddFrame(17, new FrameDescription(UISheet.GetSprite(UISheet.Heart.Heart17), 18));
            AddFrame(18, new FrameDescription(UISheet.GetSprite(UISheet.Heart.Heart18), 19));
            AddFrame(19, new FrameDescription(UISheet.GetSprite(UISheet.Heart.Heart19), 20));
            AddFrame(20, new FrameDescription(UISheet.GetSprite(UISheet.Heart.Heart20), 0));
            FrameRate = 100;

            Frames[0].Duration = 5000;
        }
    }
}